home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10885 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: uni-erlangen.de!winx03!sunshine!schoof
  2. From: schoof@informatik.uni-wuerzburg.de (Jochen Schoof)
  3. Newsgroups: comp.lang.c,comp.unix.programmer
  4. Subject: Re: Problems execing passwd using pipes
  5. Followup-To: comp.unix.programmer
  6. Date: 20 Mar 1996 16:02:36 GMT
  7. Organization: University of Wuerzburg, Germany
  8. Message-ID: <4ipa6s$vr0@winx03.informatik.uni-wuerzburg.de>
  9. References: <4ip32h$srk@dfw-ixnews3.ix.netcom.com>
  10. NNTP-Posting-Host: wi2x01.informatik.uni-wuerzburg.de
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Jonas Shoor (jshoor@ix.netcom.com) wrote:
  14. : I am trying to write a program to execute the passwd command.
  15.  
  16. I wonder why you told us twice in one posting ;-) 
  17.  
  18. : Passwd is interactive, so I set two pipes (one to read from the process
  19. : and one to write to the process), and I fork off a process to execute
  20. : the command. 
  21.  
  22. For security reasons all versions of passwd I know of do not read
  23. from stdin but directly from the terminal. So when wanting to feed
  24. passwd from another program, you'll have to deal with pseudo-ttys.
  25. Simple pipes alone won't help you any further.
  26.  
  27. - Jochen
  28.  
  29. PS: Followup-To limited to comp.unix.programmer as this has nothing to
  30.     do with C.
  31.  
  32. --
  33. --------------------------------------------------------------------------
  34.  Jochen Schoof                  mailto:schoof@informatik.uni-wuerzburg.de
  35.  Lehrstuhl fuer Informatik II +-------------------------------------------
  36.  Universitaet Wuerzburg       | You are just reading a .sig-light:
  37.  D-97074 Wuerzburg (Germany)  | It is free of fat, sugar and cholesterol!
  38. ------------------------------+-------------------------------------------
  39.  WWW-Homepage:        http://www.informatik.uni-wuerzburg.de/staff/joscho
  40. --------------------------------------------------------------------------
  41.